package cn.ylhx.venue.background.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.ylhx.venue.common.web.DateJsonTypeConvert;

public class Background implements Serializable {
	/**
	 * 具体某一个场馆详情
	 */
	private static final long serialVersionUID = 8306877914967432663L;
	private Integer id;
	private String name;
	private Integer cid;
	private Integer valid;
	private Date created;
	private Date updated;
	private Integer price;
	private String time_slice;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date time_order;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public Integer getValid() {
		return valid;
	}
	public void setValid(Integer valid) {
		this.valid = valid;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getUpdated() {
		return updated;
	}
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public String getTime_slice() {
		return time_slice;
	}
	public void setTime_slice(String time_slice) {
		this.time_slice = time_slice;
	}
	@JsonSerialize(using=DateJsonTypeConvert.class)
	public Date getTime_order() {
		return time_order;
	}
	public void setTime_order(Date time_order) {
		this.time_order = time_order;
	}
	@Override
	public String toString() {
		return "Background [id=" + id + ", name=" + name + ", cid=" + cid + ", valid=" + valid + ", created=" + created
				+ ", updated=" + updated + ", price=" + price + ", time_slice=" + time_slice + ", time_order="
				+ time_order + "]";
	}
	
	
	

}
